package com.iworkh.spring.ioc.bean.entity;

/**
 * 实体类-dog
 *
 * @author: iworkh-沐雨云楼
 * @date: 2019-12-16
 */
public class Dog {

    private String name;

    private int price;

    private String  color;

    public Dog(String name, int price) {
        this.name = name;
        this.price = price;
        System.out.println("dog 构造方法1 初始化...");
    }

    public Dog(String name, int price, String color) {
        this.name = name;
        this.price = price;
        this.color = color;
        System.out.println("dog 构造方法2 初始化...");
    }

    @Override
    public String toString() {
        return "Dog{" + "name='" + name + '\'' + ", price=" + price + ", color=" + color + '}';
    }
}
